#ifndef __MPACKET__
#define __MPACKET__

@class MMathLink;

@interface MPacket : NSObject
{
}

+ (id) textPacket: (MMathLink*) link;
+ (id) messagePacket: (MMathLink*) link;

@end


@interface MDisplayPacket : MPacket
{
@protected
	NSMutableString* _data;
	BOOL _ended;
}
- (id) initWithData: (NSString*) data;
- (void) appendData: (NSString*) data;
- (BOOL) isEnded;
- (void) setEnded: (BOOL) ended;
@end

#endif /* __MPACKET__ */
